home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_03_02 / 3n02045b < prev    next >
Text File  |  1991-12-15  |  2KB  |  34 lines

  1.  
  2. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-Begin Listing 6-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  3. /*****************************************************/
  4. /* mlecptn.h                                         */
  5. /* -- Interface to module to implement a captioned   */
  6. /*    MLE.                                           */
  7. /*****************************************************/
  8.  
  9. /* Public prototypes. */
  10. BOOL    FInitCaptionedMle(HANDLE);
  11. HWND    HwndCaptionedMle(HWND, RECT *, char *, BOOL);
  12.  
  13. /*****************************************************/
  14. /* Macro to set title of Captioned MLE.              */
  15. /* -- hwnd  : Window handle returned by              */
  16. /*            HwndCaptionedMle().                    */
  17. /* -- lsz   : Title string.                          */
  18. /*****************************************************/
  19. #define SetMleText(hwnd, lsz)                         \
  20.     SetWindowText(GetWindow((hwnd), GW_CHILD), (lsz))
  21.  
  22. /*****************************************************/
  23. /* Macro to get title of Captioned MLE.              */
  24. /* -- hwnd  : Window handle returned by              */
  25. /*            HwndCaptionedMle().                    */
  26. /* -- lsz   : Title string.                          */
  27. /* -- cb    : Maximum size of title in bytes.        */
  28. /*****************************************************/
  29. #define GetMleText(hwnd, lsz, cb)                     \
  30.     GetWindowText(GetWindow((hwnd), GW_CHILD), (lsz), \
  31.       (cb))
  32. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-End   Listing 6-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  33.  
  34.